/*
 * An XML document type.
 * Localname: BareURI
 * Namespace: http://docs.oasis-open.org/wsrm/2004/06/ws-reliability-1.1.xsd
 * Java type: cgl.narada.wsinfra.schemas.wsr.BareURIDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.wsinfra.schemas.wsr.impl;
/**
 * A document containing one BareURI(@http://docs.oasis-open.org/wsrm/2004/06/ws-reliability-1.1.xsd) element.
 *
 * This is a complex type.
 */
public class BareURIDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.wsinfra.schemas.wsr.BareURIDocument
{
    
    public BareURIDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BAREURI$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrm/2004/06/ws-reliability-1.1.xsd", "BareURI");
    
    
    /**
     * Gets the "BareURI" element
     */
    public java.lang.String getBareURI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BAREURI$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BareURI" element
     */
    public cgl.narada.wsinfra.schemas.wsr.BareURIType xgetBareURI()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.wsr.BareURIType target = null;
            target = (cgl.narada.wsinfra.schemas.wsr.BareURIType)get_store().find_element_user(BAREURI$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BareURI" element
     */
    public void setBareURI(java.lang.String bareURI)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BAREURI$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BAREURI$0);
            }
            target.setStringValue(bareURI);
        }
    }
    
    /**
     * Sets (as xml) the "BareURI" element
     */
    public void xsetBareURI(cgl.narada.wsinfra.schemas.wsr.BareURIType bareURI)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.wsinfra.schemas.wsr.BareURIType target = null;
            target = (cgl.narada.wsinfra.schemas.wsr.BareURIType)get_store().find_element_user(BAREURI$0, 0);
            if (target == null)
            {
                target = (cgl.narada.wsinfra.schemas.wsr.BareURIType)get_store().add_element_user(BAREURI$0);
            }
            target.set(bareURI);
        }
    }
}
